package com.rd.student.jiaji.class4.suyan.zrrd.day07;

public class Demo06 {
    public static void main(String[] args) {
        //通过String创建
        String str1=new String("abc");
        //无参构造
        String str =new String();
        //通过字符数组创建
        char[] chars={'a','b','c'};
        String str2=new String(chars);
        byte[] bytes={5,6,7,8};
        String str3=new String(bytes);
        System.out.println(str);
        System.out.println(str1);
        System.out.println(str2);
        System.out.println(str3);
    }
}
